﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Common;
using ExpenseSystem.Common.BaseModel;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Core.DataAddOn;
using System.Web;

namespace ExpenseSystem.Core.TitleModules
{
    public abstract class TitleManager : INormalManager<TitleModel>
    {
        protected string tran = HttpContext.Current.Items[Definition.SESSION_TRAN_STR].ToString();

        protected TitleManager() { }
        public static TitleManager CreateInstance()
        {
            return new TitleBaseManager();
        }
        protected NormalDataUpdater<TitleModel> updater = new TitleUpdaterRegister().GetTitleUpdater();
        public abstract bool Delete(TitleModel site, out string message);
        public abstract bool DeleteById( long[] siteId, out string message);
        public abstract bool Save(TitleModel site,  out string message,params IAddable<TitleModel>[] addables);
    }
}
